package cn.caplike.demo.repository.design.pattern.decorator;

class ConcreteDecorator2 extends Decorator {
    public ConcreteDecorator2(Component component) {
        super(component);
    }

    @Override
    public void doSomething() {
        super.doSomething();
        this.doAnotherThing();
    }

    private void doAnotherThing() {
        System.out.println("ConcreteDecorator2: 功能 C");
    }
}
